import { Component, Vue } from 'vue-property-decorator';
import appconst from './appconst'

@Component
export default class AbpBase extends Vue{

	L(value:string,source?:string,...argus:string[]):string{
			if(source){
					return window.abp.localization.localize(value,source,argus);
			}else{
					return window.abp.localization.localize(value,appconst.localization.defaultLocalizationSourceName,argus);
			}
	}

	get state() {
		return null
	}
	get loading() {
		return this.state && this.state.loading
	}
}